import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-10
 * Time: 13:58
 */
public class Test {
    public static void main(String[] args) {
        int n = 1;
        while (n <= 100) {
            if (n % 3 != 0 || n % 5 != 0) {
                n++;
                continue;
            }
            System.out.println(n);
            n++;
            System.out.println(10);
        }
        Scanner scanner = new Scanner(System.in);
        int n1 = scanner.nextInt();

    }
}
